import request from "@/request/index.js"

export function listNotice(type, data) {
	return request({
		url: "/notice/" + type,
		method: "post",
		header: {
			'content-type': 'application/x-www-form-urlencoded'
		},
		params: data
	})
}

export function saveNotice(type, data) {
	return request({
		url: "/notice/" + type,
		method: "post",
		header: {
			'content-type': 'application/x-www-form-urlencoded'
		},
		params: data
	})
}

export function getNoticeDetail(data) {
	return request({
		url: "/notice/getNoticeDetail",
		method: "post",
		header: {
			'content-type': 'application/x-www-form-urlencoded'
		},
		params: data
	})
}

export function getDeptUserTree(data) {
	return request({
		url: "/portal/user/getDeptUserTree",
		method: "post",
		header: {
			'content-type': 'application/x-www-form-urlencoded'
		},
		params: data
	})
}

export function doUploadBatchFile(data) {
	return request({
		url: "/file/fileUpload/doUploadBatchFile",
		method: "post",
		headers: {
			'Content-Type': 'multipart/form-data'
		},
		params: data
	})
}